import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import 组件库 from 'element-plus'
import 'element-plus/dist/index.css'
import '@/tailwind.css'

// 导入图标库
import * as 图标库 from '@element-plus/icons-vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(组件库, {
  locale: zhCn
})
// 注册图标库
for (const [键, 组件] of Object.entries(图标库)) {
  app.component(键, 组件)
}

app.mount('#app')
